import java.util.Arrays;
import java.util.Scanner;
class Base{
   public  int a;
   public  int b;
    public void method(){
        System.out.println("Base中的method");
    }
    class Der extends Base{
        String name;
        public int a=100;
        public void method1(){
            System.out.println("Der中的method1");
            System.out.println(super.a);//这里是子类和父类同名成员变量
            //调用父类的a;
        }
    }

}
class Data{
    public int year;
    public int month;
    public int day;
    public Data(int year, int month, int day) {
        //这是构造方法，用来初始化。快捷键---gerenate之后是 constructor
        this.year = year;
        this.month = month;
        this.day = day;
    }
}
class A {//类名是大驼峰
    public int a = 0;
    private int c;
    public void funcation() {
        System.out.println("A::funcation");
    }
}
class Ben extends A {
    public String name;
    public void funcation1() {
        a = 100;//调用父类的成员变量
        // c=100//c被prative修饰，可以继承，但无法访问
        System.out.println("B::funcation");
        System.out.println(a);
        funcation();//调用父类的成员方法
    }
}
public class Main {
    public static void main(String[] args) {
        Ben b= new Ben();
        b.funcation1();
    }
    static boolean Paddy;

    public static void main3(String args[]) {
        System.out.println(Paddy);
    }

    public static void main2(String[] args) {
        Test test = null;
        test.hello();
    }

    class Test {
        public static void hello() {
            System.out.println("hello");
        }
    }

    public static void main1(String[] args) {
        int[] ary = new int[6];
        int max = 0;
        int min = 0;
        Scanner scanner = new Scanner(System.in);
        for (int i = 0; i < ary.length; i++) {
            ary[i] = scanner.nextInt();
        }
        Arrays.sort(ary);
        max = ary[5];
        min = ary[0];
        System.out.println(max + " " + min);
    }
}